package abstractDemo1;

/**
 * Created with IntelliJ IDEA.
 * Description:抽象类的测试
 * User: 阿宾
 * Date: 2024-10-15
 * Time: 18:59
 */
public abstract class Person {

    private String name;
    private  int age;


    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public abstract void work();
}
